using System.Web;

namespace Limestone
{
    public class GetCurrentUserFromHttpContext : IGetCurrentUserId
    {
        private HttpContext HttpContext { get; set; }
        public GetCurrentUserFromHttpContext(HttpContext httpContext)
        {
            HttpContext = httpContext;
        }

        public string CurrentUserId
        {
            get { return HttpContext.Current.User.Identity.Name; }
        }
    }
}